<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>销售日报表</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../../elementUI/index.css">
    <link rel="stylesheet" href="../../css/index.css">
    <script type="text/javascript" src="../../js/echarts.min.js"></script>
    <style >
        /* 响应式设计，确保在小屏设备上显示良好 */
        @media screen and (max-width: 480px) {  
          .content{
            width: 100%;
            
          }

            .card {
                width: 100%;
                margin-bottom: 20px;
                border: 2px solid #eee;
                font-size: 1.5rem;
                border-radius: 20px;
                background-color: white;
                >.nowDate{
                    border: 3px solid #eee;
                    border-radius: 10px;
                    background-color: beige;
                    margin-bottom: 10px;
                    font-size: 12px;
                }

            }

            .card-1 {
                display: flex;
                flex-direction: row;
                margin-bottom: 10px;
            }

            .time {
                width: 100%;
                margin-bottom: 20px;
                font-size: 1.5rem;
                background-color: #8014b5;
                border-radius: 20px;
                color: white;
            }

            span {

                font-weight: bold;
            }

            .sale { 
                width: 100%;
                margin-top: -20px;
                display: flex;
                flex-direction: row;
                margin-bottom: -10px;
                margin-left: 10px;
                >p {
                    font-size: 12px;
                    display: flex;
                    flex-direction: row;
                    flex-wrap: wrap;
                    >span {
                        margin-right: 5px;
                        color: red;
                    }
                }
            }

            .business {
                width: 100%;
                border: 2px solid #eee;
                font-size: 1.5rem;
                border-radius: 20px;
                margin-bottom: 10px;
            }
          
        }
    </style>
</head>

<body>
    <div id="app" class="title">
        <div class="content">
            <div class="time">
                <div style=" display: flex;flex-direction: row; align-items: center;margin: 1px 20px;">
                    <p>{{ date }}</p>
                    <div style="margin-left: 20px;">销售日报</div>
                </div>
            </div>
            <!-- 柱状图 -->
            <!-- 7天营业额 -->
            <!-- <div class="business" >
                <h3 style="color: lightcoral;margin-left: 10px;">近7天销售报表</h3>
                <div class="sale">
                    <p>销售总额：<span>{{(total_revenue).toFixed(2)}}元</span></p>
                    <p>成本总额：<span>{{(total_cost).toFixed(2)}}元</span></p>
                    <p>利润总额：<span>{{(total_profit).toFixed(2)}}元</span></p>
                </div>
                <div style="width: 100%;margin-left: 10px;">
                    <div id="main" style="margin-top: 20px;width: 100%;height: 450px;"></div>
                </div>
               
            </div> -->
            <!-- 当天数据 -->
            <div class="card">
                <h3 style="color: lightcoral;">今日销售订单</h3>
                <div class="nowDate"  v-for="(item,index) in tableData" :key="index">
                    <div class="card-1">
                        <div>商品名称:</div>  
                        &nbsp;
                        <div>{{item.Article_Name}}</div>
                    </div>
                    <div class="card-1">
                        <div>商品类型:</div>
                        &nbsp;
                        <div>{{item.Category_Name}}</div>
                    </div>
                    <div class="card-1">
                        <div>销售金额:</div>
                        &nbsp;
                        <div>{{item.Sales_Amount}}元</div>
                    </div>
                    <div class="card-1">
                        <div>采购金额:</div>
                        &nbsp;
                        <div>{{item.Transaction_Amount}}元</div>
                    </div>
                    <div class="card-1">
                        <div>销售数量:</div>
                        &nbsp;
                        <div>{{item.Quantity}}</div> 
                    </div>
                </div> 
            </div>
        </div>
        
        
    </div>
    <script type="text/javascript" src="../../js/jquery-3.6.0.min.js"></script>
    <script type="text/javascript" src="../../js/jquery.cookie.js"></script>
    <script type="text/javascript" src="../../js/vue.min.js"></script>
    <script type="text/javascript" src="../../elementUI/index.js"></script>
    <script type="text/javascript" src="../../js/utils.js"></script>
    <script type="text/javascript" src="./js/reconciliation.js"></script>
</body>

</html>